﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace NutriLeaf.Web.Core.Shopping
{
    public interface IShopping
    {
        void AddShopping(Model.Shopping shopping, ref Model.NutriLeafDBEntities context);

        void RemoveShopping(int id, ref Model.NutriLeafDBEntities context);

        void RemoveShopping(Model.Shopping shopping, ref Model.NutriLeafDBEntities context);

        Model.Shopping GetShopping(int id, ref Model.NutriLeafDBEntities context);

        void Update(Model.Shopping shopping, ref Model.NutriLeafDBEntities context);

        List<Model.Shopping> GetShoppingEventsByUser(int userid, int top, ref Model.NutriLeafDBEntities context);

        Model.Shopping GetRecentShoppingEvent(int userId, ref Model.NutriLeafDBEntities context);
    }
}